export function $v(e,key){
  let {dataset}= e.currentTarget
  if(key) return dataset[key]
  return dataset
}

export function $handleChangeActive(e){
  let {kv} =$v(e)
  this.setData({
    [kv[0]]:kv[1]
  })
}